package com.qf.day09.lxjk;

public class Dog implements Flyable{
    private String name;

    public Dog() {
    }

    public Dog(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void fly() {
        System.out.println(this.name+"在飞");

    }

    @Override
    public void eat() {
        System.out.println(this.name+"在吃");

    }
}
